//
//  MyView.swift
//  skincare
//
//  Created by whu125 on 2023/5/10.
//

import SwiftUI

struct MyView: View {
    var body: some View {
        FullScreenStack{
            HStack{
                VStack{
                    Rectangle()
//                        .background(Image("index") .resizable()
//                            .aspectRatio(contentMode: .fill))
                       
                        .frame(width: 200,height: 200)
                }
        //        .frame(width: 200,height: 90)
          //      .background(Color.pink)
                
//                ZStack(alignment: .leading){
//
//                }
//                .frame(width: 200,height: 600)
//                .background(Color.pink)
                ZStack(alignment: .trailing) {
                    Rectangle()
                    
                        .background(Image("index").resizable()
                            .aspectRatio(contentMode: .fill))
                        .cornerRadius(20)
                        .rotationEffect(Angle.degrees(-10))
                }
                .frame(width: 220, height: 600)
                .offset(x: 100, y: 0)
                
              
            }
            
        }
        .background(Color(red: 0.10, green: 0.83, blue: 0.64))
        
    }
}

struct MyView_Previews: PreviewProvider {
    static var previews: some View {
        MyView()
    }
}
